import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '../components/HelloWorld'
import Home from '../components/Home.vue'
import UserAdmin from "../components/UserAdmin/UserAdmin.vue";
import AttractionAdmin from "../components/AttractionAdmin/AttractionAdmin.vue";
import multimedia from "../components/multimedia/multimedia.vue";



Vue.use(Router)
export default new Router({
  mode: 'history', // 希望去掉 # 并且能够直接通过 http://localhost:8080/attractionAdmin 访问，
  // 你需要配置 Vue Router 使用 history 模式，并且确保你的服务器配置正确
  // base: '/attractionAdmin/', // 设置基础路径，目前没有需求，先放着
  routes: [
    // {
    //   path: '/',
    //   name: 'UserAdmin',
    //   component: UserAdmin
    // },
    {
      path: '/userAdmin',
      name: 'UserAdmin',
      component: UserAdmin
    },
    {
      path: '/attractionAdmin',
      name: 'AttractionAdmin',
      component: AttractionAdmin
    },
    {
      path: '/multimediaAdmin',
      name: 'multimediaAdmin',
      component: multimedia
    },
  ]
})
